package csen;

public class Sedan implements Car {
	String brand;
	Color color;
	int price;
	FuelType fuelType;
	
	public Sedan(String brand, Color color, int price, FuelType fuelType) {
		this.brand = brand;
		this.color = color;
		this.price = price;
		this.fuelType = fuelType;
	}
	
	@Override
	public String getBrand() {
		return brand;
	}

	@Override
	public Color getColor() {
		return color;
	}

	@Override
	public int getPrice() {
		return price;
	}

	@Override
	public FuelType getFuelType() {
		return fuelType;
	}

	public void setBrand(String newBrand) {
		brand = newBrand;
	}
	
	public void setColor(Color newColor) {
		color = newColor;
	}

	public void setPrice(int newPrice) {
		price = newPrice;
	}

	public void setFuelType(FuelType newFuelType) {
		fuelType = newFuelType;
	}

	@Override
	public String toString() {
		return "Sedan [brand=" + brand + ", color=" + color + ", price="
				+ price + ", fuelType=" + fuelType + "]";
	}
}

